package cn.ailearn.module.mapper;

import cn.ailearn.module.pojo.entity.Permissions;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
* @author Administrator
* @description 针对表【permissions(权限表)】的数据库操作Mapper
* @createDate 2025-10-23 17:38:21
* @Entity cn.ailearn.module.pojo.entity.Permissions
*/
@Mapper
public interface PermissionsMapper extends BaseMapper<Permissions> {

     /**
     * 根据用户id查询用户的权限码
     * @param userId 用户id
     * @return 权限码列表
     */
    Set<String> selectByPermissionCode(@Param("userId") Long userId);

}




